//
//  ByNetItemModel.m
//  jmsfhz_ios
//
//  Created by pro on 16/8/4.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByNetItemModel.h"

@implementation ByNetItemModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    NSMutableArray *temp = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in jsonDic[@"result"]) {
        ByNetItemResultItemModel *item = [[ByNetItemResultItemModel alloc] initContentWithDic:dic];
        [temp addObject:item];
    }
    self.results = [temp copy];
}

@end


@implementation ByNetItemResultItemModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
//    self.create_time = [NSDate getDateForStringFotmatWithTimeInterval:[jsonDic[@"create_time"] doubleValue] formatter:@"yyyy-MM-dd HH:mm"];
//    self.update_time = [NSDate getDateForStringFotmatWithTimeInterval:[jsonDic[@"update_time"] doubleValue] formatter:@"yyyy-MM-dd HH:mm"];
    
}

@end
